<include file="./Tpl/Public/header.html" />
<script src="http://open.web.meitu.com/sources/xiuxiu.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload=function(){
	xiuxiu.embedSWF("altContent",5,"650","440");
       /*第1个参数是加载编辑器div容器，第2个参数是编辑器类型，第3个参数是div容器宽，第4个参数是div容器高*/
	xiuxiu.setUploadURL("{:C('APPURL')}{:U('User/Index/uploadFace')}");//修改为您自己的上传接收图片程序
	xiuxiu.onInit = function ()
	{
		xiuxiu.loadPhoto("http://open.web.meitu.com/sources/images/1.jpg");
	}	
	xiuxiu.onUploadResponse = function (data)
	{
		if(data!=1)
		{
		 	alert( data);  
		}else{
			alert("上传成功！"); 
			window.location.reload();
		}
	}
}
</script>
<!--个人中心-修改资料 Start-->
    <div class="my_data">
    	<div class="my_data_h1 cl"><b></b>修改资料<div id="edit_res" style="display:none" class="my_data_tip"></div></div>
        <div class="my_data_t">基本信息</div>
        <dl>
        	<dt>头像</dt>
            <dd><img id="img" width="92" height="92" onerror="this.onerror=null;this.src='{:C('WWWURL')}/static/style/images/portrait.png';" alt="" src="<?php echo $res["img"];?>"></dd>
          <dd class="my_data_img"><a href="###">修改头像</a></dd>
        </dl>
        <dl>
            <dt>登录名</dt>
            <dd id="mobile"><?php echo $res["mobile"]; ?></dd>
        </dl>
        <!--<dl>
        	
            <dt>英语书面等级</dt>
            <?php if($res["leveltest"]){ ?>
            <dd>Lv <?php echo $res["leveltest"];?></dd>
            <?php }else{ ?>
            <dd class="my_data_grade" id="leveltest">您的英语尚未定级，请进行<a href="<?php echo HAOWJ; ?>leveltest.htm">水平测试</a></dd>
            <?php } ?>
        </dl>-->
        <dl>
            <dt>真实姓名</dt>
            <dd><input id="name" type="text" value="<?php echo $res["name"];?>" maxlength="10"></dd>
        </dl>
         <dl>
            <dt>first name</dt>
            <dd><input id="first_name" type="text" value="<?php echo $res["first_name"];?>" maxlength="15"></dd>
        </dl>
         <dl>
            <dt>last name</dt>
            <dd><input id="last_name" type="text" value="<?php echo $res["last_name"];?>" maxlength="15"></dd>
        </dl>
       
       
        <dl>
            <dt>性别</dt>
            <dd id="gender">
                <label><input type="radio" id="sex" <?php if($res["gender"] == 1){ ?> checked=""  <?php } ?> value="1" name="sex">男</label>
                <label><input type="radio" id="sex" <?php if($res["gender"] == 2){ ?> checked=""  <?php } ?> value="2" name="sex">女</label>
            </dd>
            <dd class="my_data_pro"></dd>
        </dl>
      <dl class="my_data_bir">
            <dt>出生日期</dt>
            <dd class="my_data_year">
             <select id="year" onchange="changeday()" name="year" > <option value="">请选择年</option></select>
            </dd>
        <dd class="my_data_month">
          <select id="month" name="month"  onchange="changeday()" ><option value="">请选择月</option> </select>
            
        </dd>
            <dd class="my_data_day">
            <select id="day" name="day" ><option value="">请选择日</option> </select>
            
            </dd>
        </dl>
        <dl>
          <dt>备用联系方式</dt>
            <dd><input id="emergency_contact" type="text" value="<?php echo $res["emergency_contact"];?>" maxlength="20"></dd>
          <dd class="my_data_pro" style="color:#515151">方便课程顾问督促学习进度和答疑</dd>
      </dl>
     <dl>
            <dt>联系邮箱</dt>
            <dd><input id="email" type="text" value="<?php echo $res["email"]; ?>" onBlur="if(this.value!=''){check_reged_edit_info(0)}"></dd>
            <dd class="my_data_pro" id="email_data_pro" style="display:none" >请填写正确的邮箱格式</dd>
        </dl>
        <dl>
            <dt>QQ</dt>
            <dd><input ime-mode:disabled" id="qq" type="text" value="<?php echo $res["qq"]; ?>" onBlur="check_reged_edit_info(1)" maxlength="20"></dd>
             <dd class="my_data_pro" id="qq_data_pro" style="display:none" >请填写正确的QQ号</dd>
        </dl>
        <dl class="my_data_adr">
            <dt>所在地</dt>
            <dd>
            <select onchange="adr_province(this)" id="adr_province" name="" >
                <option sid="34" value="请选择省市">请选择省市</option>
					<option sid="0" value="北京">北京</option>
					<option sid="1" value="上海">上海</option>
					<option sid="2" value="天津">天津</option>
					<option sid="3" value="重庆">重庆</option>
					<option sid="4" value="河北">河北</option>
					<option sid="5" value="山西">山西</option>
					<option sid="6" value="内蒙古">内蒙古</option>
					<option sid="7" value="辽宁">辽宁</option>
					<option sid="8" value="吉林">吉林</option>
					<option sid="9" value="黑龙江">黑龙江</option>
					<option sid="10" value="江苏">江苏</option>
					<option sid="11" value="浙江">浙江</option>
					<option sid="12" value="安徽">安徽</option>
					<option sid="13" value="福建">福建</option>
					<option sid="14" value="江西">江西</option>
					<option sid="15" value="山东">山东</option>
					<option sid="16" value="河南">河南</option>
					<option sid="17" value="湖北">湖北</option>
					<option sid="18" value="湖南">湖南</option>
					<option sid="19" value="广东">广东</option>
					<option sid="20" value="广西">广西</option>
					<option sid="21" value="海南">海南</option>
					<option sid="22" value="四川">四川</option>
					<option sid="23" value="贵州">贵州</option>
					<option sid="24" value="云南">云南</option>
					<option sid="25" value="西藏">西藏</option>
					<option sid="26" value="陕西">陕西</option>
					<option sid="27" value="甘肃">甘肃</option>
					<option sid="28" value="宁夏">宁夏</option>
					<option sid="29" value="青海">青海</option>
					<option sid="30" value="新疆">新疆</option>
					<option sid="31" value="香港">香港</option>
					<option sid="32" value="澳门">澳门</option>
					<option sid="33" value="台湾">台湾</option>
           		 </select>
            </dd>
            <dd>
            <select id="adr_city" name="">
                <option selected>不限</option>
            </select>
            </dd>
        </dl>
        <dl>
            <dt>单位名称</dt>
            <dd><input id="corporate_name" type="text" value="{$userInfo.corporate_name}" maxlength="60"></dd>
        </dl>
        <dl>
            <dt>部门/职位</dt>
            <dd><input id="profession" value="{$userInfo.profession}" type="text" maxlength="150"></dd>
        </dl>
        <div class="my_data_t">修改密码</div>
        <dl>
            <dt>当前密码</dt>
            <dd id="reg_psw3"><input id="nowpassword" type="password" onblur="if(this.value!=''){check_passworded_find(3);}"></dd>
            <dd id="reg__tip_psw3" class="my_data_pro" style="visibility: hidden;"></dd>
        </dl>
        <dl>
            <dt>新密码</dt>
            <dd id="reg_psw1"><input id="newpassword" type="password" onblur="if(this.value!=''){check_passworded_find(1);}"></dd>
            <dd id="reg__tip_psw1" class="my_data_pro"></dd>
        </dl>
        <dl>
            <dt>确认新密码</dt>
            <dd id="reg_psw4"><input id="newpassword1" type="password" onblur="if(this.value!=''){check_passworded_find(4);}"></dd>
            <dd id="reg__tip_psw4" class="my_data_pro" style="display:none">密码不一致</dd>
        </dl>
        <dl>
            <dt>&nbsp;</dt>
            <dd><a tokenid="{$token}" class="my_data_save" href="###">保存</a></dd>
        </dl>
  	</div>
    <!--个人中心-修改资料 End-->
    <include file="./Tpl/Public/footer.html" />
    <!--版权 End-->
</div>
<div id="tip_my_data_div" style="display:none">
	
	<div class="tipBg"></div>
	<div class="tip tip_my_data">
		<div class="tip_t"><a id="tip_my_data_close" href="###" title="关闭"></a>修改头像</div>
        <!--[if IE 6]><iframe scrolling="no" frameborder="0" style="width:650px;height:490px;background-color:transparent;position:absolute;z-index:-1;"></iframe><![endif]-->
	    <div class="tip_c"   id="altContent">
	    	
	    </div>
	</div>
</div>
<script>
var user_info = {$jsonInfo};
var img = '<?php echo $filename162; ?>';
</script>
<script type="text/javascript" src="__JS__user.js?v=2"></script>


